<!--==========内容主体==========-->
	<div style='height:40px;opcity:10'></div>
	<div id='userinfo'>
		<div class='info-list'>
			<div class='info-face'>
				<p>
                    {if condition="$user['face180']"}
					<img src="{$user['face180']}" width='180' height='180' alt="username" />
                    {else/}
                    <img src="__HOME__/images/noface.gif" width='180' height='180' alt="username" />
                    {/if}
				</p>
				<ul>
					<li>
						<a href="javascript:;">
							<strong>{$user['follow']}</strong><br/>关注
						</a>
					</li>
                    <li>
                        <a href="javascript:;">
                            <strong>{$user['fans']}</strong><br/>粉丝
                        </a>
                    </li>
                    <li>
                        <a href="javascript:;">
                            <strong>{$user['weibo']}</strong><br/>微博
                        </a>
                    </li>

				</ul>
			</div>
            <ul class="uinfo">
                <li class="uname full">{$user['username']}</li>
                {if condition="$user['intro']"}
                <li class="uintro full">{$user['intro']}</li>
                {else/}
                <li class="uintro full">这家伙很懒！</li>
                {/if}
                <li class="ulist full">
                    <ul>
                        {if condition="$user['sex'] == '男'"}
                        <li><i class="icon icon-boy"></i></li>
                        {else/}
                        <li><i class="icon icon-girl"></i></li>
                        {/if}
                        {if condition='$user["location"]'}
                        <li>{$user['location']}</li>
                        {else/}
                        该用户未填写所在地
                        {/if}

                        {if condition='$user["constellation"]'}
                        <li class="nobr">{$user['constellation']}</li>
                        {else/}
                        该用户未选择星座
                        {/if}
                    </ul>
                </li>
                <li class="uedit full">
                    <a href="{:url('home/userinfo/index')}">修改个人资料</a>
                </li>
            </ul>
		</div>
	</div>

    <div class="main">
        <!--=====中部=====-->
        <div id="middle" class='fleft'>
            <!--微博发布框-->
            <div class='send_wrap'>
                <div class='send_title fleft'></div>
                <div class='send_prompt fright'>
                    <span>你还可以输入<span id='send_num'>140</span>个字</span>
                </div>
                <div class='send_write'>
                    <form url="{:url('home/index/send_weibo')}" id="send_weibo_data">
                        <textarea sign='weibo' name='content'></textarea>
                        <span class='ta_right'></span>
                        <div class='send_tool'>
                            <ul class='fleft'>
                                <li title='表情'><i class='icon icon-phiz phiz' sign='weibo'></i></li>
                                <li title='图片'><i class='icon icon-picture'></i>
                                    <!--图片上传框-->
                                    <div id="upload_img" class='hidden'>
                                        <div class='upload-title'><p>本地上传</p><span class='close'></span></div>
                                        <div style="padding: 35px 0px 0px 100px;">
                                            <input type="hidden" name='max' value='' id="weibo_max"/>
                                            <input type="hidden" name='medium' value='' id="weibo_medium"/>
                                            <input type="hidden" name='mini' value='' id="weibo_mini"/>
                                            <input type="hidden" name='img' value='' id="weibo_img"/>
                                            <span id="weibo-uploadify"></span>
                                        </div>
                                    </div>
                                    <!--图片上传框-->
                                    <div id='pic-show' class='hidden'>
                                        <img src="" alt="" width="300" height="300"/>
                                    </div>
                                </li>
                            </ul>
                            <input type='submit' value='' class='send_btn fright' title='发布微博按钮'/>
                        </div>
                    </form>
                </div>
            </div>
            <!--微博发布框-->
            <div class='view_line'>
                <strong>微博</strong>
            </div>
            {if condition="!$data['data']"}
            没有发布的微博
            {/if}

            {if condition="$data['data']"}
            <!--====================普通微博样式====================-->
            {foreach name="$data['data']" item="v"}
            {if condition="!$v['isturn']"}
            <div class="weibo">

                <div class="wb_cons">
                    <dl>
                        <!--发布内容-->
                        <dd class='content'>
                            <p>{:replace_weibo($v['content'])}</p>
                        </dd>
                        {if condition="$v['img']"}
                        <!--微博图片-->
                        <dd>
                            <div class='wb_img'>
                                <!--小图-->
                                <img src="{$v['mini']}" class='mini_img '/>
                                <div class="img_tool hidden">
                                    <ul>
                                        <li>
                                            <i class='icon icon-packup'></i>
                                            <span class='packup'>&nbsp;收起</span>
                                        </li>
                                        <li>|</li>
                                        <li>
                                            <i class='icon icon-bigpic'></i>
                                            <a href="{$v['max']}" target='_blank'>&nbsp;查看大图</a>
                                        </li>
                                    </ul>
                                    <!--中图-->
                                    <div class="img_info"><img src="{$v['medium']}"/></div>
                                </div>
                            </div>
                        </dd>
                        {/if}
                        </if>
                    </dl>
                    <!--操作-->
                    <div class="wb_tool">
                        <!--发布时间-->
                        <span class="send_time">{:time_format($v['time'])}</span>
                        <ul>
                            <li class="del-li hidden">
                                <i class="ui-icon icon-del">
                                </i><span class="del-weibo" wid="{$v['wid']}" url="{:url('home/index/del_weibo')}">删除</span>
                            </li>
                            <li class="del-li hidden" style="color: rgb(221, 237, 240);">|</li>
                            <li class="praise-wrap">
                                <i class="ui-icon icon-praise"></i>
                                <span class="praise" wid="{$v['wid']}" url="{:url('home/index/praise')}">赞(<span>{$v['praise']}</span>)</span>
                            </li>
                            <li style="color:#DDEDF0;">|</li>
                            <li>
                                <i class="ui-icon icon-forward"></i>
                                <span class='turn' wid="{$v['wid']}" valign="top">转发({$v['turn']})</span>
                            </li>
                            <li style="color:#DDEDF0;">|</li>
                            <li class="keep-wrap">
                                <i class="ui-icon icon-feed-collect"></i>
                                <span class='keep' wid="{$v['wid']}" url="{:url('home/index/keep')}">收藏({$v['keep']})</span>
                                <div class="cp-keep-up hidden"></div>
                            </li>
                            <li style="color:#DDEDF0;">|</li>
                            <li>
                                <i class="ui-icon icon-comments"></i>
                                <span class='comment' wid="{$v['wid']}" url="{:url('home/comment/get_comment')}">评论({$v['comment']})</span>
                            </li>
                        </ul>
                    </div>
                    <!--=====回复框=====-->
                    <div class='comment_load hidden'>
                        <img src="__HOME__/images/loading.gif">评论加载中，请稍候...
                    </div>
                    <div class='comment_list hidden'>
                        <textarea name="" sign='comment'></textarea>
                        <ul>
                            <li class='phiz fleft' sign='comment'></li>
                            <li class='comment_turn fleft'>
                                <label>
                                    <input type="checkbox" name='' value="1"/>同时转发到我的微博
                                </label>
                            </li>
                            <li class='comment_btn fright' wid="{$v['wid']}" uid="{$v['uid']}" url="{:url('home/comment/send_coomment')}">评论</li>
                        </ul>
                    </div>
                    <!--=====回复框结束=====-->
                </div>
            </div>
            {else/}
            <!--====================转发样式====================-->
            <div class="weibo">
                <div class="wb_cons">
                    <dl>
                        <!--发布内容-->
                        <dd class='content'>
                            <p>{:replace_weibo($v['content'])}</p>
                        </dd>
                        <!--转发的微博内容-->
                        <dd>
                            <div class="wb_turn">
                                <dl>
                                    <!--原作者-->
                        <dt class='turn_name'>
                            <a href="/uid/{$v['isturn']['uid']}">@{$v['isturn']['uname']}</a>
                        </dt>
                        <!--原微博内容-->
                        <dd class='turn_cons'>
                            <p>{:replace_weibo($v['isturn']['content'])}</p>
                        </dd>

                        <!--原微博图片-->
                        {if condition="$v['img']"}
                        <dd>
                            <div class="turn_img">
                                <!--小图-->
                                <img src="{$v['isturn']['mini']}" class='turn_mini_img'/>
                                <div class="turn_img_tool hidden">
                                    <ul>
                                        <li>
                                            <i class='icon icon-packup'></i>
                                            <span class='packup'>&nbsp;收起</span></li>
                                        <li>|</li>
                                        <li>
                                            <i class='icon icon-bigpic'></i>
                                            <a href="{$v['isturn']['max']}" target='_blank'>&nbsp;查看大图</a>
                                        </li>
                                    </ul>
                                    <!--中图-->
                                    <div class="turn_img_info">
                                        <img src="{$v['isturn']['medium']}"/>
                                    </div>
                                </div>
                            </div>
                        </dd>
                        {/if}
                    </dl>
                    <!--转发微博操作-->
                    <div class="turn_tool">
                        <span class='send_time'>{:time_format($v['isturn']['time'])}</span>
                        <ul>
                            <li>
                                <i class="ui-icon icon-forward"></i>
                                <span style="color: #2B96E1;">转发({$v['isturn']['turn']})</span>
                            </li>
                            <li style="color:#DDEDF0;">|</li>
                            <li>
                                <i class="ui-icon icon-comments"></i>
                                <span style="color: #2B96E1;">评论({$v['isturn']['comment']})</span>
                            </li>
                        </ul>
                    </div>
                </div>
                </dd>
                </dl>
                <!--操作-->
                <div class="wb_tool">
                    <!--发布时间-->
                    <span class="send_time">{:time_format($v['time'])}</span>
                    <ul>
                        <li class="del-li hidden">
                            <i class="ui-icon icon-del">
                            </i><span class="del-weibo" wid="{$v['wid']}" url="{:url('home/index/del_weibo')}">删除</span>
                        </li>
                        <li class="del-li hidden" style="color: rgb(221, 237, 240);">|</li>
                        <li class="praise-wrap">
                            <i class="ui-icon icon-praise"></i>
                            <span class="praise" wid="{$v['wid']}" url="{:url('home/index/praise')}">赞(<span>{$v['praise']}</span>)</span>
                        </li>
                        <li style="color:#DDEDF0;">|</li>
                        <li>
                            <i class="ui-icon icon-forward"></i>
                            <span class='turn' wid="{$v['wid']}" tid="{$v['isturn']['id']}">转发({$v['turn']})</span>
                        </li>
                        <li style="color:#DDEDF0;">|</li>
                        <li class="keep-wrap">
                            <i class="ui-icon icon-feed-collect"></i>
                            <span class='keep' wid="{$v['wid']}" url="{:url('home/index/keep')}">收藏({$v['keep']})</span>
                            <div class="cp-keep-up hidden"></div>
                        </li>
                        <li style="color:#DDEDF0;">|</li>
                        <li>
                            <i class="ui-icon icon-comments"></i>
                            <span class='comment' wid="{$v['wid']}" url="{:url('home/comment/get_comment')}">评论({$v['comment']})</span>
                        </li>
                    </ul>
                </div>
                <!--回复框-->
                <div class='comment_load hidden'>
                    <img src="__HOME__/images/loading.gif">评论加载中，请稍候...
                </div>
                <div class='comment_list hidden'>
                    <textarea name="" sign='comment'></textarea>
                    <ul>
                        <li class='phiz fleft' sign='comment'></li>
                        <li class='comment_turn fleft'>
                            <label>
                                <input type="checkbox" name='' value="1"/>同时转发到我的微博
                            </label>
                        </li>
                        <li class='comment_btn fright' wid="{$v['wid']}" uid="{$v['uid']}" url="{:url('home/comment/send_coomment')}">评论</li>
                    </ul>
                </div>
                <!--回复框结束-->
            </div>
        </div>
        {/if}
        <!--====================转发样式结束====================-->
        {/foreach}
        {/if}
        <!--分页区域 START-->
        <div id='page'>{$data['page']}</div>
        <!--分页区域 END-->
        </div>

        <!--==========右侧==========-->
        <div id='right'>
        	<dl>
        		<dt>
                    {if condition="$Request.session.uid == $uid"}我{else/}
                    {if condition="$user['sex'] == '男'"}他{else/}她{/if}
                    {/if}的关注<a href="">更多»</a>
                </dt>
                {if condition="$follow"}
                {foreach $follow as $v}
        		<dd>
        			<a href="/uid/{$v['uid']}">
                        {if condition="$v['face50']"}
        				<img src="{$v['face50']}" alt="" width='50' height='50'/>
                        {else/}
                        <img src="__HOME__/images/noface.gif" alt="" width='50' height='50'/>
                        {/if}
        			</a>
        			<p>
        				<a href="/uid/{$v['uid']}">{$v['username']}</a>
        			</p>
        		</dd>
                {/foreach}
                {/if}
        	</dl>
        	<dl>
                <dt>
                    {if condition="$Request.session.uid == $uid"}我{else/}
                    {if condition="$user['sex'] == '男'"}他{else/}她{/if}
                    {/if}的粉丝<a href="">更多»</a>
                </dt>
                {if condition="$fans"}
                {foreach $fans as $v}
                <dd>
                    <a href="/uid/{$v['uid']}">
                        {if condition="$v['face50']"}
                        <img src="{$v['face50']}" alt="" width='50' height='50'/>
                        {else/}
                        <img src="__HOME__/images/noface.gif" alt="" width='50' height='50'/>
                        {/if}
                    </a>
                    <p>
                        <a href="/uid/{$v['uid']}">{$v['username']}</a>
                    </p>
                </dd>
                {/foreach}
                {/if}
            </dl>
        </div>
    </div>
<!--==========内容主体结束==========-->
